/**
 * @file 21.c
 * @author your name (you@domain.com)
 * @brief 宏打印函数
 * @version 0.1
 * @date 2022-04-14
 * 
 * @copyright Copyright (c) 2022
 * 
 */
#include <stdio.h>

#define DBG_PRINTF(fmt, args...) \
{ \
    printf("<<File:%s  Line:%d  Function:%s>>", __FILE__, __LINE__, __FUNCTION__); \
    printf(fmt, ##args); \
}

static void Test0(void)
{
    int a = 1, b = 2;
    DBG_PRINTF("a + b = %d\n", (a + b));
}

static void Test1(void)
{
    DBG_PRINTF("Hello world");
}